package com.woniuedu.utils;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.profile.DefaultProfile;

/**
 * 阿里云视频初始化对象
 * @Author：向天浩
 * @Date：2022/4/19 10:14
 * @Description :TODO
 */

public class InitObject {
    public static DefaultAcsClient initVodClient(){
        String regionId = "cn-shanghai"; //点播服务接入区
        //VodUtils.KEYID.秘钥
       // VodUtils.KEYSECRET 秘钥
        DefaultProfile profile = DefaultProfile.getProfile(regionId,VodUtils.KEYID,VodUtils.KEYSECRET);
        DefaultAcsClient client = new DefaultAcsClient(profile);
        return client;
    }
}
